/**
 * Project Name:DesensRuleUpdateForm
 * File Name:DesensRuleUpdateForm.java
 * Package Name:com.bwda.dsrs.businessservice.domain.form.desensrule;
 * Date:2019年4月28日
 * Copyright (c) 2019, 江苏保旺达软件有限公司 All Rights Reserved.
 *
 */
package com.bwda.dsrs.filecenter.domain.form.desensrule;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.bwda.dsrs.base.util.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 脱敏表
 *
 * @author youzhen
 * @date 2019年4月28日
 */
@Data
@ApiModel(description = "脱敏规则")
public class DesensRuleUpdateForm {

	@ApiModelProperty(value = "ID", required = true)
	@NotNull(message = "ID不能为空")
	private Integer id;

	@ApiModelProperty(value = "规则名称")
	@NotNull(message = "规则名称不能为空")
	@Size(min = 1,max = 40,message = "规则名称长度在1-40之间")
	private String ruleName;

	@ApiModelProperty(value = "正则")
	@NotNull(message = "正则不能为空")
	@Size(min = 1,max = 1000,message = "正则长度在1-1000之间")
	private String reg;

	@ApiModelProperty(value = "替换正则")
	@Size(min = 0,max = 1000,message = "替换正则长度在1-1000之间")
	private String replaceReg;

	@ApiModelProperty(value = "备注")
	@Size(min = 0,max = 140,message = "备注长度在1-140之间")
	private String remark;

	@ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date createTime;

	@ApiModelProperty(value = "更新时间")
	private Integer updateTime;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

	@ApiModelProperty(value = "0正常 1停用")
	private Integer state;

	@ApiModelProperty(value = "分组列表，逗号隔开")
	@NotNull(message = "分组列表不能为空")
	@Size(min = 1,max = 600,message = "分组列表在1-600之间")
	private String groupList;

}